/*
 * SpryAccordionItem.java
 *
 * Created on September 8, 2007, 5:19 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package jmaki.models;

import org.json.JSONException;
import org.json.JSONObject;

/**
 *
 * @author kabad
 */
public class SpryAccordionItem {
    private JSONObject joSpryAccordionItem;
    /** Creates a new instance of SpryAccordionItem */
    public SpryAccordionItem() {
        joSpryAccordionItem=new JSONObject();
    }
    public void setLabel(String label){
        try {
            joSpryAccordionItem.put("label",label);
        } catch (JSONException ex) {
            ex.printStackTrace();
        }
    }
    public void setContent(String content){
        try {
            joSpryAccordionItem.put("content",content);
        } catch (JSONException ex) {
            ex.printStackTrace();
        }
    }
    public void setId(String id){
        try {
            joSpryAccordionItem.put("id",id);
        } catch (JSONException ex) {
            ex.printStackTrace();
        }
    }
    public void setInclude(String include){
        try {
            joSpryAccordionItem.put("include",include);
        } catch (JSONException ex) {
            ex.printStackTrace();
        }
    }
    public void setLazyLoad(String lazyLoad){
        try {
            joSpryAccordionItem.put("lazyLoad",lazyLoad);
        } catch (JSONException ex) {
            ex.printStackTrace();
        }
    }
    public void setSelected(boolean selected){
        try {
            joSpryAccordionItem.put("selected",selected);
        } catch (JSONException ex) {
            ex.printStackTrace();
        }
    }
    public JSONObject toJSONObject(){
        return joSpryAccordionItem;
    }
}
